﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DB1 RID: 3505
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuitTreasureDungeonScRsp : IMessage<QuitTreasureDungeonScRsp>, IMessage, IEquatable<QuitTreasureDungeonScRsp>, IDeepCloneable<QuitTreasureDungeonScRsp>, IBufferMessage
	{
		// Token: 0x17002C87 RID: 11399
		// (get) Token: 0x06009D5A RID: 40282 RVA: 0x001A5070 File Offset: 0x001A3270
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuitTreasureDungeonScRsp> Parser
		{
			get
			{
				return QuitTreasureDungeonScRsp._parser;
			}
		}

		// Token: 0x17002C88 RID: 11400
		// (get) Token: 0x06009D5B RID: 40283 RVA: 0x001A5077 File Offset: 0x001A3277
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuitTreasureDungeonScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C89 RID: 11401
		// (get) Token: 0x06009D5C RID: 40284 RVA: 0x001A5089 File Offset: 0x001A3289
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuitTreasureDungeonScRsp.Descriptor;
			}
		}

		// Token: 0x06009D5D RID: 40285 RVA: 0x001A5090 File Offset: 0x001A3290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitTreasureDungeonScRsp()
		{
		}

		// Token: 0x06009D5E RID: 40286 RVA: 0x001A5098 File Offset: 0x001A3298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitTreasureDungeonScRsp(QuitTreasureDungeonScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009D5F RID: 40287 RVA: 0x001A50BD File Offset: 0x001A32BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitTreasureDungeonScRsp Clone()
		{
			return new QuitTreasureDungeonScRsp(this);
		}

		// Token: 0x17002C8A RID: 11402
		// (get) Token: 0x06009D60 RID: 40288 RVA: 0x001A50C5 File Offset: 0x001A32C5
		// (set) Token: 0x06009D61 RID: 40289 RVA: 0x001A50CD File Offset: 0x001A32CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06009D62 RID: 40290 RVA: 0x001A50D6 File Offset: 0x001A32D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuitTreasureDungeonScRsp);
		}

		// Token: 0x06009D63 RID: 40291 RVA: 0x001A50E4 File Offset: 0x001A32E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuitTreasureDungeonScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009D64 RID: 40292 RVA: 0x001A5114 File Offset: 0x001A3314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009D65 RID: 40293 RVA: 0x001A5153 File Offset: 0x001A3353
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009D66 RID: 40294 RVA: 0x001A515B File Offset: 0x001A335B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009D67 RID: 40295 RVA: 0x001A5164 File Offset: 0x001A3364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009D68 RID: 40296 RVA: 0x001A5198 File Offset: 0x001A3398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009D69 RID: 40297 RVA: 0x001A51D6 File Offset: 0x001A33D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuitTreasureDungeonScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009D6A RID: 40298 RVA: 0x001A5207 File Offset: 0x001A3407
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009D6B RID: 40299 RVA: 0x001A5210 File Offset: 0x001A3410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003CBD RID: 15549
		private static readonly MessageParser<QuitTreasureDungeonScRsp> _parser = new MessageParser<QuitTreasureDungeonScRsp>(() => new QuitTreasureDungeonScRsp());

		// Token: 0x04003CBE RID: 15550
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003CBF RID: 15551
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04003CC0 RID: 15552
		private uint retcode_;
	}
}
